package com.sumainfor.zuul.service.impl;

import com.sumainfor.common.util.ContextUtils;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.zuul.dao.getDeptMapper;
import com.sumainfor.zuul.service.getdept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class getdeptImpl implements getdept {

    @Autowired
    private getDeptMapper getDeptMapper;


    @Override
    public JsonResult getdeptByType(Map<String,Object> params) {
        JsonResult result = new JsonResult();


        result.put(getDeptMapper.getdeptByType(params));
        return result;
    }

    @Override
    public String  getnamebyid(String id) {
        return getDeptMapper.getnamebyid(id);
    }
}
